var obj ={
	onShow(){
		var token = uni.getStorageSync("token");
		if(token){
			
		}else{
			uni.showModal({
				title:"未登录",
				content:"需要登录后才能查看",
				success(res){
					console.log(res)
					if(res.confirm){
						
						// uni.showToast({
						// 	title:"成功了"
						// })
						
						uni.navigateTo({
							url:"/pages/user/login/login"
						})
						
					}else{
						uni.showToast({
							title:"取消了"
						})
					}
				}
			})
		}
			
	},
}

export default obj